package com.company.xxx.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "consul-server", fallback = WorldServiceHystric.class)
public interface WorldService {
    @RequestMapping(value = "/world", method = RequestMethod.GET)
    String world();
}
